package com.qf.service;

import com.github.pagehelper.PageInfo;
import com.qf.entitys.Coupon;
import com.qf.entitys.Order;

import java.util.List;

public interface CouponService {
    int deleteByPrimaryKey(Integer couponId);

    int insert(Coupon record);

    int insertSelective(Coupon record);

    Coupon selectByPrimaryKey(Integer couponId);

    int updateByPrimaryKeySelective(Coupon record);

    int updateByPrimaryKey(Coupon record);

    PageInfo<Coupon> selectAllByBidCoupons(Integer id, Integer pageindex);
    PageInfo<Coupon> selectAllByBidCouponsAndCouponName(Integer id, Integer pageindex,String name);

    PageInfo<Coupon> selectAllByBid(Integer bid, Integer pageindex);
    List<Coupon> selectByByBidAndUserId(Integer bid, Integer userid);
}
